import {
    createStore,
    applyMiddleware

} from "redux"
import countReducers from "./reducers/countReducers"

import thunk from "redux-thunk"
console.log("store调用了",countReducers);
//创建store,参数一是reducer初始值,参数二是处理dispatch传递过来的函数
const store = createStore(countReducers,applyMiddleware(thunk))

//暴露
export default store